package cn.yh.dao;

import java.util.List;
import java.util.Map;

import org.springframework.stereotype.Repository;

import cn.yh.model.User;

@Repository
public interface IUserDao {

	public User getUserById(Integer id);
	
	public void add(User user);
	
	public void delete(Integer id);
	
	public void update(User user);
	
	public Integer getCount(Map<String,Object> user);
	
	public List<Object> getAll(Map<String,Object> user);
	
	public List<User> getAllUser();
	
	public User getUserByName(String name);
}
